<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Process a PHP file importing function and class definitions, overwriting where appropriate</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="function.runkit7-function-rename.html">« runkit7_function_rename</a></li>
      <li style="float: right;"><a href="function.runkit7-method-add.html">runkit7_method_add »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="ref.runkit7.html">runkit7 函数</a></li>
    <li>Process a PHP file importing function and class definitions, overwriting where appropriate</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="function.runkit7-import" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">runkit7_import</h1>
  <p class="verinfo">(PECL runkit7 &gt;= Unknown)</p><p class="refpurpose"><span class="refname">runkit7_import</span> &mdash; <span class="dc-title">
   Process a PHP file importing function and class definitions, overwriting where appropriate
  </span></p>

 </div>

 <div id="function.runkit7-import-refsynopsisdiv">
  <div class="warning"><strong class="warning">警告</strong>
   <p class="simpara">This feature has been <em class="emphasis">removed</em> in PECL runkit7 4.0.0.</p>
  </div>
 </div>

 <div class="refsect1 description" id="refsect1-function.runkit7-import-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>runkit7_import</strong></span>(<span class="methodparam"><span class="type">string</span> <code class="parameter">$filename</code></span>, <span class="methodparam"><span class="type">int</span> <code class="parameter">$flags</code><span class="initializer"> = ?</span></span>): <span class="type">bool</span></div>

  <p class="para rdfs-comment">
   Similar to <span class="function"><a href="function.include.html" class="function">include</a></span>. However, any code residing outside
   of a function or class is simply ignored.
   Additionally, depending on the value of <code class="parameter">flags</code>,
   any functions or classes which already exist in the currently running environment
   may be automatically overwritten by their new definitions.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.runkit7-import-parameters">
  <h3 class="title">参数</h3>
  <dl>
   
    <dt>
<code class="parameter">filename</code></dt>

    <dd>

     <p class="para">
       Filename to import function and class definitions from
     </p>
    </dd>

   
   
    <dt>
<code class="parameter">flags</code></dt>

    <dd>

     <p class="para">
       Bitwise OR of the <a href="runkit7.constants.html" class="link"><code class="literal">RUNKIT7_IMPORT_*</code>
       family of constants</a>.
     </p>
    </dd>

   
  </dl>

 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.runkit7-import-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   成功时返回 <strong><code>true</code></strong>， 或者在失败时返回 <strong><code>false</code></strong>。
  </p>
 </div>



</div></div></div></body></html>